// var CRU_PageHeight =  "";


var myScroll
    // pullDownEl,
    // pullDownOffset,
    // pullUpEl,
    // pullUpOffset;
// generatedCount = 0,
// scrollNav,
// navWrapper;



/**
 * 初始化iScroll控件
 */
function loaded() {
    // pullDownEl = document.getElementById('pullDown');
    // pullDownOffset = pullDownEl.offsetHeight;
    // pullUpEl = document.getElementById('pullUp');
    // pullUpOffset = pullUpEl.offsetHeight;

    myScroll = new iScroll('wrapper', {
        scrollbarClass: 'myScrollbar', /* 自定义滚动条的样式名 */
        useTransition: true, /* 是否使用CSS变换*/
        // topOffset: 40,
        scrollbars: true,
        Default: false,
        interactiveScrollbars:true, // 滚动条变得能够拖拽，并且用户能够和它交互。
        onRefresh: function () {
            console.log('refresh','maxScrollY:',this.maxScrollY,', minScrollY:',this.minScrollY)
        },
        onScrollMove: function () { //内容移动的回调
            console.log('move','maxScrollY:',this.maxScrollY,', minScrollY:',this.minScrollY)
        },
        onScrollEnd: function () {  // 在滚动完成后的回调
            console.log('end','maxScrollY:',this.maxScrollY,', minScrollY:',this.minScrollY)
        }
    });

    // setTimeout(function () { document.getElementById('wrapper').style.left = '0'; }, 800);
}

//初始化绑定iScroll控件);
window.onload = loaded;
